package com.cnxjs.shs4et.repository;

import com.cnxjs.shs4et.entity.Discussion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DiscussionRepository extends JpaRepository<Discussion, Long> {


    Discussion findById(int id);

    List<Discussion> findAllByDiscussionCommentOrderByPublishTimeDesc(int comment);
}
